package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Item;
import cn.wolfcode.trip.base.query.ItemQueryObject;

import java.util.List;

public interface ItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Item record);

    Item selectByPrimaryKey(Long id);

    List<Item> selectAll();

    int updateByPrimaryKey(Item record);

    List<Item> queryForList(ItemQueryObject qo);

    List<Item> selectItemsByCatalogId(Long catalogId);

    int selectItemPriceByItemId(Long itemId);
}